#ifndef FRENQUENCELIST_H
#define FRENQUENCELIST_H

#include "frequence.h"
#include <vector>

namespace  tv
{

class FrequenceList : public std::vector< Frequence >
{
public:
    FrequenceList();

    bool load(const char* filepath);

    bool save(const char* filepath);

    size_t indexOf(const std::string& num);

    size_t indexWithName(const std::string& name);

    bool contains(const std::string& num);

    std::string getFilePath();

    bool remove(size_t idx, Frequence& freq);

    bool remove(size_t idx);

protected:
    std::string m_filepath;

};

}

#endif // FRENQUENCELIST_H
